<?php /* Smarty version 2.6.16, created on 2009-04-15 21:59:35
         compiled from AdminMemberships.html */ ?>
<?php require_once(SMARTY_CORE_DIR . 'core.load_plugins.php');
smarty_core_load_plugins(array('plugins' => array(array('function', 'url', 'AdminMemberships.html', 12, false),array('function', 'language', 'AdminMemberships.html', 30, false),)), $this); ?>
<?php echo '
<script type="text/javascript">

function forumRedirect(usergroupid)
{
	task = eval("document.cpform.u" + usergroupid + ".options[document.cpform.u" + usergroupid + ".selectedIndex].value");

	switch(task)
	{
	'; ?>

		case 'show':
		window.location.href = "<?php echo smarty_function_url(array('link' => 'admin.main.members'), $this);?>
type_"+ usergroupid +"/";
		break;
		case 'edit':
		case 'delete':
		window.location.href = "<?php echo smarty_function_url(array('link' => 'admin.config.memberships'), $this);?>
type_"+ usergroupid +"/";
		break;
		default:
			return false;
		break;
	<?php echo '
	}
}

</script>
'; ?>

<form method="post" action="<?php echo smarty_function_url(array('link' => 'current'), $this);?>
" name="cpform" id="cpform">
<table style="width:100%;" class="forumline" cellspacing="0">
<tr>
    <td class="row-header" colspan="3"><span><?php echo smarty_function_language(array('text' => 'Mod_Account.default_usergroups'), $this);?>
</span></td>
</tr>
<tr>
	<th><?php echo smarty_function_language(array('text' => 'title'), $this);?>
</th>
	<th><?php echo smarty_function_language(array('text' => 'Mod_Account.users'), $this);?>
</th>
	<th><?php echo smarty_function_language(array('text' => 'actions'), $this);?>
</th>
</tr>
<?php $_from = $this->_tpl_vars['aItemsSpecial']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['aSpecial']):
?>
<tr>
	<td class="row2">
		<b><?php echo $this->_tpl_vars['aSpecial']['title']; ?>
</b>
	</td>
	<td class="row2" style="text-align:center;">
		<?php if ($this->_tpl_vars['aSpecial']['membership_id'] != 2):  echo $this->_tpl_vars['aSpecial']['total'];  else: ?>N/A<?php endif; ?>
	</td>
	<td class="row2" style="text-align:right;">
		<select name="u<?php echo $this->_tpl_vars['aSpecial']['membership_id']; ?>
" onchange="forumRedirect(<?php echo $this->_tpl_vars['aSpecial']['membership_id']; ?>
);" style="width:175px;">
			<option value="edit"><?php echo smarty_function_language(array('text' => 'Mod_Account.edit_usergroup'), $this);?>
 (ID: <?php echo $this->_tpl_vars['aSpecial']['membership_id']; ?>
)</option>
			<?php if ($this->_tpl_vars['aSpecial']['membership_id'] != 2): ?>
			<option value="show"><?php echo smarty_function_language(array('text' => 'Mod_Account.show_all_users'), $this);?>
</option>
			<?php endif; ?>
		</select>
		<input type="button" value="Go" name="go" onclick="forumRedirect(<?php echo $this->_tpl_vars['aSpecial']['membership_id']; ?>
);" />
	</td>
</tr>
<?php endforeach; endif; unset($_from); ?>
<tr>
    <td class="row-header" colspan="3"><span><?php echo smarty_function_language(array('text' => 'Mod_Account.custom_usergroups'), $this);?>
</span></td>
</tr>
<tr>
	<th><?php echo smarty_function_language(array('text' => 'title'), $this);?>
</th>
	<th><?php echo smarty_function_language(array('text' => 'Mod_Account.users'), $this);?>
</th>
	<th><?php echo smarty_function_language(array('text' => 'actions'), $this);?>
</th>
</tr>
<?php $_from = $this->_tpl_vars['aItems']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['aItem']):
?>
<tr>
	<td class="row2">
		<b><?php echo $this->_tpl_vars['aItem']['title']; ?>
</b>
	</td>
	<td class="row2" style="text-align:center;">
		<?php echo $this->_tpl_vars['aItem']['total']; ?>

	</td>
	<td class="row2" style="text-align:right;">
		<select name="u<?php echo $this->_tpl_vars['aItem']['membership_id']; ?>
" onchange="forumRedirect(<?php echo $this->_tpl_vars['aItem']['membership_id']; ?>
);" style="width:175px;">
			<option value="edit"><?php echo smarty_function_language(array('text' => 'Mod_Account.edit_usergroup'), $this);?>
 (ID: <?php echo $this->_tpl_vars['aItem']['membership_id']; ?>
)</option>
			<option value="show"><?php echo smarty_function_language(array('text' => 'Mod_Account.show_all_users'), $this);?>
</option>
			<option value="delete"><?php echo smarty_function_language(array('text' => 'delete'), $this);?>
</option>
		</select>
		<input type="button" value="Go" name="go" onclick="forumRedirect(<?php echo $this->_tpl_vars['aItem']['membership_id']; ?>
);" />
	</td>
</tr>
<?php endforeach; endif; unset($_from); ?>
<tr>
	<td class="catBottom" colspan="3" style="text-align:center;">
		<input type="button" name="act[update_membership]" value="<?php echo smarty_function_language(array('text' => 'menu.memberships.create_new'), $this);?>
" style="cursor:pointer;font-size:10pt;" onclick="window.location.href='<?php echo smarty_function_url(array('link' => 'admin.config.memberships','create' => 'new'), $this);?>
';" />
	</td>
</tr>
</table>
</form>